<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%
    String id = request.getParameter("id");
%>
<html>
<head>
    <script type="text/javascript">
        var id = <%=id%>;
        var listUrl = "coupon/couponList?id=" + id;
        $(document).ready(function () {
            $('#userWeXinDetails-fm').form('syncLoad', "userWeXinInfo/info.do?id="+id);
            $("#userPhotoImg").attr("src", $("#userPhoto").val());
        });
        $("#userWeXinDetails-dg").datagrid({
            loadMsg : '数据加载中....',
            width : '100%',
            url : listUrl,
            nowrap : false,
            pageSize: 20,
            striped : true,
            sortOrder : 'desc',
            remoteSort : false,
            rownumbers : true,
            pagination : true,
            pageList : [ 10, 15, 20, 25 ],
            fitColumns : true,
            frozenColumns : [ [ {
                field : 'id',
                checkbox : true
            }] ],
            columns : [ [
                {
                    field : 'couponName',
                    title : '优惠券名',
                    width : 210
                },
                {
                    field : 'remark',
                    title : '说明',
                    width : 100
                },
                {
                    field : 'overdueTime',
                    title : '期限',
                    width : 100
                },
                {
                    field : 'couponMoney',
                    title : '面额',
                    width : 100
                },
                {
                    field : 'couponStatus',
                    title : '状态',
                    width : 100
                }
            ] ]
        });// end datagrid

    </script>
</head>
<body>
<div class="linkbar"><a>用户管理</a>/<a>用户信息</a>/<a>用户信息详情</a></div>
<div class="formtoolbar">
    <form id="userWeXinDetails-fm" method="post" novalidate>
        <div class="fitem">
            <label style="padding-right: 0px;">头像：</label>
            <img id="userPhotoImg" src="" style="width:100px;"/>
            <input id="userPhoto" name="userPhoto" type="hidden" id="userPhoto"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">昵称：</label>
            <input name="niceUser" class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">id：</label>
            <input  name="id"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">手机号：</label>
            <input  name="phone"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">uuid：</label>
            <input  name="uuid"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">openid：</label>
            <input  name="openid"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">地点：</label>
            <input  name="address"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">性别：</label>
            <input  name="sex"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">积分数量：</label>
            <input name="integral"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">推荐人：</label>
            <input  name="recommend"  class="easyui-validatebox"/>
        </div>
    </form>
</div>
</div>
<div class="clear"></div>
<div id="userWeXinConpon-dg" toolbar="#toolbar"></div>
<div id="dlg-buttons">
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="listback('userWeXinInfo/index.do')">返回</a>
</div>
</body>
</html>